package com.gengzp.rpc.model.requestIdentification;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName RpcRequestIdentification
 * @Description rpc请求标识实体
 * @Author gengzp
 * @Date 2025/8/22 22:15
 */
public class RpcRequestIdentification implements Serializable {

    @Serial
    private static final long serialVersionUID = 2438047273821865571L;

    /**
     * 请求唯一标识
     */
    private String requestId;

    /**
     * 是否为初始请求
     * true: 初始请求, false: 后续调用的远程请求
     */
    private Boolean initialRequestFlag;

    /**
     * 是否启用远程事务
     * true: 启用远程事务, false: 未启用远程事务
     */
    private Boolean enableRemoteTransactionFlag;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public Boolean getInitialRequestFlag() {
        return initialRequestFlag;
    }

    public void setInitialRequestFlag(Boolean initialRequestFlag) {
        this.initialRequestFlag = initialRequestFlag;
    }

    public Boolean getEnableRemoteTransactionFlag() {
        return enableRemoteTransactionFlag;
    }

    public void setEnableRemoteTransactionFlag(Boolean enableRemoteTransactionFlag) {
        this.enableRemoteTransactionFlag = enableRemoteTransactionFlag;
    }

}
